//
//  TestViewController1ViewCell.m
//  JKXib
//
//  Created by 王冲 on 2019/7/7.
//  Copyright © 2019 王冲. All rights reserved.
//

#import "TestViewController1ViewCell.h"

@implementation TestViewController1ViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (void)registerForTableView:(UITableView *)tableView {
    [tableView registerNib:[UINib nibWithNibName:NSStringFromClass(self) bundle:nil] forCellReuseIdentifier:[self reusableIdentifier]];
}

+ (NSString *)reusableIdentifier {
    static NSString *identifier = @"CYIOVAirSettingCell";
    return identifier;
}


+ (instancetype)cellForTableView:(UITableView *)tableView {
    TestViewController1ViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[self reusableIdentifier]];
    if (!cell) {
        cell = [self loadFromXib];
    }
    
    return cell;
}

+ (instancetype)loadFromXib {
    TestViewController1ViewCell *cell = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] firstObject];
    return cell;
}

+(CGFloat)cellheught{
    
    return 100;
}

@end
